package cn.com.git.admin.dao;

import cn.com.git.admin.dao.model.SysUserResource;
import cn.com.git.admin.service.query.SysUserResourceListQuery;

import java.util.List;

/**
  * SysUserResourceDAO接口
  * @author zhangzhenfu
  * @Description
  * @date 2020/5/8
*/
public interface SysUserResourceDAO {

    SysUserResource selectById(Integer id);

    SysUserResource selectOne(SysUserResourceListQuery query);

    int countLimit(SysUserResourceListQuery query);

    List<SysUserResource> selectList(SysUserResourceListQuery query);

    Integer insertOne(SysUserResource record);

    List<SysUserResource> insertList(List<SysUserResource> list);

    Integer updateOne(SysUserResource record);

    Integer updateLimit(SysUserResource record, SysUserResourceListQuery query);

    Integer deleteOne(Integer id);

    Integer deleteLimit(SysUserResourceListQuery query);
}